//
//  AppDelegate.h
//  suRead
//
//  Created by bao on 15/9/7.
//  Copyright (c) 2015年 bao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"

static NSString *kApplicationDidEnterBackground = @"kApplicationDidEnterBackground";
static NSString *kApplicationWillEnterForeground = @"kApplicationWillEnterForeground";

@interface AppDelegate : UIResponder <UIApplicationDelegate,MBProgressHUDDelegate>{
    
    MBProgressHUD * HUD;
    NSString *myOpen ;
}

@property (strong, nonatomic) UIWindow *window;
@property (nonatomic,strong) UIWindow *maskWindow;
@property (nonatomic, retain) NSString *myOpen;
@property (nonatomic,strong)NSMutableArray *userList;

@property(nonatomic,assign)BOOL allowRotation;

@property (nonatomic,strong)NSString *app_Version;

+ (instancetype)sharedAppDelegate;

-(void)setExtraCellLineHidden: (UITableView *)tableView;
-(CGSize)sizeWithFont:(int)f lable:(UILabel*)label;
- (UIImage*)createImageWithColor:(UIColor*) color;

- (void)showWithStatus:(UIView*)view Label:(NSString*)text;
-(void)dismiss;
-(void)alert:(NSString*)message;
-(void)viewKeyboardDisappearChangeRect:(UIView*)view;
-(void)viewKeyboardAppearChangeRect:(int)offset View:(UIView*)view;
-(NSString*)confromTimesp:(NSString*)update :(NSString*)format;
-(void)settitle:(UIView*)view title:(NSString*)title;

- (void)touchImageView:(id)sender;
-(long long)longLongFromDate:(NSDate*) fromdate;

-(void)showOpenView;

@end

